'It is recommended to test the script on a local machine for its purpose and effects. 
'ManageEngine Endpoint Central will not be responsible for any 
'damage/loss to the data/setup based on the behavior of the script.

'Description - Fetch the Complete Volume details
'Configuration Type - COMPUTER
'==============================================================

Set objShell = CreateObject("WScript.Shell")
Set objExec = objShell.Exec("wmic volume list brief")

' Output the result to the console
Do While Not objExec.StdOut.AtEndOfStream
    WScript.Echo objExec.StdOut.ReadLine
Loop